package com.vhall.component.entity.account.vo;

import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author lsl
 * @since 2021/7/29
 */
@Data
public class AdmEditPasswordReqVO implements Serializable {

    @ParamName("admin_id")
    @NotNull(message = "admin_id参数不能为空")
    private Integer adminId;

    @NotBlank(message = "password参数不能为空")
    @Length(min = 6, max = 20, message = "password长度错误")
    private String password;

    @NotBlank(message = "confirm_password参数不能为空")
    @ParamName("confirm_password")
    private String confirmPassword;

}
